package com.travellightly.config;

import com.travellightly.listener.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置类
 *
 * @author songjiahao
 * @date 2023/04/17  13:12
 */
@Configuration
public class TravelLightlyConfig {
    /**
     * 全局异常处理
     * @return
     */
    @Bean
    public GlobalExceptionHandler getGlobalExceptionHandler(){
        return new GlobalExceptionHandler();
    }
}
